<div class="term" id="term-new">
<script type="text/javascript" src="<?=base_url();?>static/js/xheditor-1.1.6-zh-cn.min.js"></script>

<?=form_open('new/term', $attributes);?>
<p><label>分类名</label></p><input type="text" name="term_name" />
<p><label>类型</label></p><input type="radio" name="term_type" checked="checked" value="category" />分类<input type="radio" name="term_type" value="tag" />标签
<p><label>别名</label></p><input type="text" name="term_slug" />
<p><label>描述</label></p><input type="text" name="term_description" />
<p><label>父分类</label></p>
<select name="term_parent">
<option value="0">无父分类</option>
<?php foreach($list as $row) : ?>
<option value="<?=$row->term_id?>"><?=$row->term_name?></option>
<?php endforeach;?>
</select>
<p><input type="submit" name="submit" value="提交分类" /></p>
</form>
</div>